<?php

namespace app\admin\service;

use app\admin\model\LayoutDesc;

/**
 * @author tangsan
 * Class LayoutDescService
 * @package app\admin\service
 */
class LayoutDescService extends BaseService
{
    /**
     * 构造函数
     * @author tangsan
     * LayoutDescService constructor.
     */
    public function __construct()
    {
        $this->model = new LayoutDesc();
    }

    /**
     * 获取布局描述列表
     * @return array
     * @throws \think\db\exception\DataNotFoundException
     * @throws \think\db\exception\DbException
     * @throws \think\db\exception\ModelNotFoundException
     * @author tangsan
     */
    public function getLayoutDescList()
    {
        $list = $this->model
            ->where("mark", "=", 1)
            ->order("sort", "asc")
            ->select()
            ->toArray();
        return message("操作成功", true, $list);
    }

}